<%
// Need to have 
// 	int pageCount - the page that is current showed
// 	int totalPages
// 	String inc - the page the navigator belongs to (guestbook, news...)
%>
<table width="520" border="0">
<tr>
	<td align="left" width="70">	
		<% if(pageCount > 1) { %> 
		<a href="/servlet/mvc.Servl?state=<%=inc%>&page=<%=(pageCount-1)%>" onfocus="this.blur()"><b>Previous</b></a><% } %>
	</td>
	<td align="center">	
		<%for(int a=1;a<totalPages+1;a++){
		if(a==pageCount){ %>
			<b><%=a%></b>
		<% } else {	%>		
		<a href="/servlet/mvc.Servl?state=<%=inc%>&page=<%=a%>" onfocus="this.blur()"><b><%=a%></b></a><% }} %>
	</td>
	<td align="right" width="70">	
		<% if(pageCount <= totalPages-1) {%>
		<a href="/servlet/mvc.Servl?state=<%=inc%>&page=<%=(pageCount+1)%>" onfocus="this.blur()"><b>Next</b></a><% } %>
	</td>	
</tr>
</table>